********************************************
*****************OVERVIEW*******************
********************************************
Journal of Politics (JOP) Dataverse Replication materials: "Compulsory Voting Diminishes the Relationship Between Winning and Satisfaction With Democracy," by Shane P. Singh 

Below is a description of the data and analysis files, as well as step-by-step instructions for the replication of the content of all figures and associated discussion in the article and Supplementary Material.


********************************************
***********COMPUTE ENVIRONMENT**************
********************************************
Operating system:						Mac OS X Big Sur (3.8 GHz 8-Core Intel Core i7; 32 GB 2667 MHz DDR4)
Statistical software versions					Stata/MP 17.0 for Mac (Intel 64-bit) (Revision 10 May 2022)
Estimated run time for all data creation and analyses		1 hour and 20 minutesPackage used in analysis						COEFPLOT (http://repec.sowi.unibe.ch/stata/coefplot/getting-started.html) 
								



********************************************
***CONSTRUCTING THE CSES ANALYSIS DATASET***
********************************************

************
**Necessary Files
************
CSES_IMD_JOP.dta							Comparative Study of Electoral Systems (CSES) Integrated Module Dataset (IMD) with country, election, and respondent identifiers and macro- and individual-level variables needed for Study 2 analyses
CSES Preparation.do						Prepares the dataset CSES_IMD_JOP_Replication.dta to be used in the Study 2 analyses
V-Dem-CY-Full+Others-v11.dta					Varieties of Democracy (V-Dem) Country-Year Extended Version 11 dataset, with 59 indicators from other data sources V-Dem Preparation.do						Prepares the dataset V-Dem_JOP_Replication.dta to be used in the creation of CSES_IMD_JOP_Replication.dta



************
**Instructions and Further Description
************
1. Create a folder to store all of the above-named files and download them to that folder. Set your working directory in Stata to this folder.

2. Open and run "V-Dem Preparation.do". By altering some country names, this will create a file called "V-Dem_JOP_Replication.dta" that is ready to be merged into the CSES. 

3. Open and run "CSES Preparation.do". This will create a file called "CSES_IMD_JOP_Replication.dta" for use at the analysis stage. This file creates intuitive country-year election identifiers, imports data from V-Dem on compulsory voting and voter turnout (which are supplemented with CSES data), and approximates missing information on Polity scores included in the CSES with data from Freedom House.



********************************************
**********REPLICATING THE ANALYSIS**********
********************************************

************
**Necessary Files
************
Argentina_2019_JOP_Replication.dta				Dataset used in the analyses in Study 1 and in the analyses associated with Study 1 in the Supplementary Material
CSES_IMD_JOP_Replication.dta					Dataset used in the analyses in Study 2 and in the analyses associated with Study 2 in the Supplementary Material
Study 1 Replication.do						Contains code for reproducing the analyses in Study 1 and the analyses associated with Study 1 in the Supplementary MaterialStudy 2 Replication.do						Contains code for reproducing the analyses in Study 2 and the analyses associated with Study 2 in the Supplementary Material

************
**Instructions and Further Description
************
1. Set your working directory in Stata to the folder in which you stored all of the files in Step 1 above.

2. Replicate Study 1. Open and run “Study 1 Replication.do”. This file will open “Argentina_2019_JOP_Replication.dta”. The code will create all figures in Study 1 and the tables and figures in associated sections of the Supplementary Material. It also provides code for analyses behind claims made in the main text and Supplementary Material with regard to Study 1. 

3. Replicate Study 2. Open and run “Study 2 Replication.do”. This file will open “CSES_IMD_JOP_Replication.dta”. The code will create all figures in Study 2 and the tables and figures in associated sections of the Supplementary Material. It also provides code for analyses behind claims made in the main text and Supplementary Material with regard to Study 2. 



********************************************
****************OTHER FILES*****************
********************************************
Codebook.pdf							Describes each variable used in the analyses and gives information on coding and measurement 
readme.txt							This file





********************************************
*************DATASET CITATIONS**************
********************************************
Coppedge, Michael, John Gerring, Carl Henrik Knutsen, Staffan I. Lindberg, Jan Teorell, Nazifa Alizada, David Altman, Michael Bernhard, Agnes Cornell, M. Steven Fish, Lisa Gastaldi, Haakon Gjerløw, Adam Glynn, Allen Hicken, Garry Hindle, Nina Ilchenko, Joshua Krusell, Anna Luhrmann, Seraphine F. Maerz, Kyle L. Marquardt, Kelly McMann, Valeriya Mechkova, Juraj Medzihorsky, Pamela Paxton, Daniel Pemstein, Joseﬁne Pernes, Johannes von Römer, Brigitte Seim, Rachel Sigman, Svend-Erik Skaaning, Jeffrey Staton, Aksel Sundström, Ei-tan Tzelgov, Yi-ting Wang, Tore Wig, Steven Wilson, and Daniel Ziblatt.  2021.  V-Dem [Country-Year/Country-Date] Dataset V11: Varieties of Democracy (V-Dem) Project.

The Comparative Study of Electoral Systems (www.cses.org). CSES INTEGRATED MODULE DATASET (IMD) [dataset and documentation]. 

Freedom House. Freedom in the World 1999. Washington, DC: Freedom House.

Freedom House. Freedom in the World 2003. Washington, DC: Freedom House.

Freedom House. Freedom in the World 2007. Washington, DC: Freedom House.

Freedom House. Freedom in the World 2009. Washington, DC: Freedom House.

Freedom House. Freedom in the World 2013. Washington, DC: Freedom House.

Singh, Shane P. “2019 Argentina Election Survey.” Athens, GA: University of Georgia. 


********************************************
************REPLICATION CONTACT*************
********************************************
Shane P. Singh
singh@uga.edu
www.shanepsingh.com
https://scholar.google.com/citations?hl=en&user=GZ2ePRkAAAAJ




